package com.app.TCES.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.app.TCES.domain.Course;
import com.app.TCES.domain.Department;
import com.app.TCES.domain.Student;
import com.app.TCES.domain.Teacher;
import com.app.TCES.domain.TeacherSet;
import com.app.TCES.mapper.AdministratorMapper;

@Service
public class AdministratorService {
     @Autowired
	AdministratorMapper administratorMapper;
	public List<Department> getDeparyment() {
	
		return administratorMapper.getDepartment();
	}
	public List<Teacher> getTeacher() {

		return administratorMapper.getTeacher();
	}
	public List<Course> getCourse() {
      
		return administratorMapper.getCourse();
	}
	public List<com.app.TCES.domain.Class> getClasses() {
		
		return administratorMapper.getClasses();
	}
	public List<Student> getStudent() {
		
		return administratorMapper.getStudent();
	}
	public int getTeacherCount() {
		
		return administratorMapper.getTeacherCount();
	}

	
	public List<TeacherSet> getTeacherSet(int tmp, Integer limit) {
		
		return administratorMapper.getTeacherSet(tmp,limit);
	}
	
	public List<TeacherSet> getTeacherSet1(int tmp, Integer limit, String deptName) {
		
		return administratorMapper.getTeacherSet1(tmp,limit,deptName);
	}
	
	public List<Department> getDeptName() {

		return administratorMapper.getDeptName();
	}
	public int gettol() {
		
		return administratorMapper.gettol();
	}
	public int gettol1(String deptName) {

		return administratorMapper.gettol1(deptName);
	}

}
